//
//  YCTitleView.m
//  TitleContent
//
//  Created by 唐可雄 on 2019/7/18.
//  Copyright © 2019 swustyc. All rights reserved.
//

#import "YCTitleView.h"

@implementation YCTitleView

#pragma mark - View Config

- (void)addSeparatorView {
    UIView *separatorView = [[UIView alloc] init];
    separatorView.backgroundColor = self.config.separatorViewColor;
    separatorView.hidden = self.config.separatorViewHidden;
    separatorView.translatesAutoresizingMaskIntoConstraints = NO;
    [self addSubview:separatorView];
    [separatorView addConstraint:[NSLayoutConstraint constraintWithItem:separatorView attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeHeight multiplier:1 constant:self.config.separatorViewHeight]];
    [self addConstraint:[NSLayoutConstraint constraintWithItem:separatorView attribute:NSLayoutAttributeLeading relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeading multiplier:1 constant:0]];
    [self addConstraint:[NSLayoutConstraint constraintWithItem:separatorView attribute:NSLayoutAttributeTrailing relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTrailing multiplier:1 constant:0]];
    [self addConstraint:[NSLayoutConstraint constraintWithItem:separatorView attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeBottom multiplier:1 constant:0]];
}

#pragma mark - Select

- (void)setSelectedIndex:(NSUInteger)selectedIndex {
    
}

#pragma mark - Load

- (void)reloadData {
    
}

@end
